home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2002 #11
/
Amiga Plus CD - 2002 - No. 11.iso
/
Online
/
Unreal
/
rehash
< prev
next >
Wrap
Text File
|
2002-08-07
|
682b
|
24 lines
#!/bin/sh
# Rehash Script v2.0
# $Id: rehash,v 1.1.1.1.2.7 2002/08/07 22:26:45 stskeeps Exp $
IRCDPID="ircd.pid"
if [ ! -r $IRCDPID ]; then
clear
echo "|--------------------------------------------|"
echo "| **** ERROR **** |"
echo "| Possible problems: |"
echo "| (1) $IRCDPID not found |"
echo "| (2) The IRCd is not running |"
echo "|--------------------------------------------|"
else
PID=`cat $IRCDPID`
kill -HUP $PID
echo "|----------------------------------------"
echo "| UnrealIRCD successfully rehashed."
echo "| Process ID: $PID"
echo "|----------------------------------------"
fi